.class public Lcom/hierynomus/asn1/g;
.super Lcom/hierynomus/asn1/q;
.source "ASN1Enumerated.java"


# static fields
.field private static b:[Lcom/hierynomus/asn1/g;


# instance fields
.field private final a:[B


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0xc

    new-array v0, v0, [Lcom/hierynomus/asn1/g;

    .line 1
    sput-object v0, Lcom/hierynomus/asn1/g;->b:[Lcom/hierynomus/asn1/g;

    return-void
.end method

.method public constructor <init>(Ljava/math/BigInteger;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/hierynomus/asn1/q;-><init>()V

    .line 2
    invoke-virtual {p1}, Ljava/math/BigInteger;->toByteArray()[B

    move-result-object p1

    iput-object p1, p0, Lcom/hierynomus/asn1/g;->a:[B

    return-void
.end method

.method public constructor <init>([B)V
    .locals 0

    .line 3
    invoke-direct {p0}, Lcom/hierynomus/asn1/q;-><init>()V

    .line 4
    iput-object p1, p0, Lcom/hierynomus/asn1/g;->a:[B

    return-void
.end method

.method static a([B)Lcom/hierynomus/asn1/g;
    .locals 3

    .line 5
    array-length v0, p0

    const/4 v1, 0x1

    if-le v0, v1, :cond_0

    .line 6
    new-instance v0, Lcom/hierynomus/asn1/g;

    invoke-static {p0}, Lcom/hierynomus/asn1/utils/a;->a([B)[B

    move-result-object p0

    invoke-direct {v0, p0}, Lcom/hierynomus/asn1/g;-><init>([B)V

    return-object v0

    .line 7
    :cond_0
    array-length v0, p0

    if-eqz v0, :cond_3

    const/4 v0, 0x0

    .line 8
    aget-byte v0, p0, v0

    and-int/lit16 v0, v0, 0xff

    .line 9
    sget-object v1, Lcom/hierynomus/asn1/g;->b:[Lcom/hierynomus/asn1/g;

    array-length v2, v1

    if-lt v0, v2, :cond_1

    .line 10
    new-instance v0, Lcom/hierynomus/asn1/g;

    invoke-static {p0}, Lcom/hierynomus/asn1/utils/a;->a([B)[B

    move-result-object p0

    invoke-direct {v0, p0}, Lcom/hierynomus/asn1/g;-><init>([B)V

    return-object v0

    .line 11
    :cond_1
    aget-object v2, v1, v0

    if-nez v2, :cond_2

    .line 12
    new-instance v2, Lcom/hierynomus/asn1/g;

    invoke-static {p0}, Lcom/hierynomus/asn1/utils/a;->a([B)[B

    move-result-object p0

    invoke-direct {v2, p0}, Lcom/hierynomus/asn1/g;-><init>([B)V

    aput-object v2, v1, v0

    :cond_2
    return-object v2

    .line 13
    :cond_3
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "ENUMERATED has zero length"

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0
.end method


# virtual methods
.method a(Lcom/hierynomus/asn1/p;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/hierynomus/asn1/g;->a:[B

    const/16 v1, 0xa

    invoke-virtual {p1, v1, v0}, Lcom/hierynomus/asn1/p;->a(I[B)V

    return-void
.end method

.method a(Lcom/hierynomus/asn1/q;)Z
    .locals 1

    .line 2
    instance-of v0, p1, Lcom/hierynomus/asn1/g;

    if-nez v0, :cond_0

    const/4 p1, 0x0

    return p1

    .line 3
    :cond_0
    check-cast p1, Lcom/hierynomus/asn1/g;

    .line 4
    iget-object v0, p0, Lcom/hierynomus/asn1/g;->a:[B

    iget-object p1, p1, Lcom/hierynomus/asn1/g;->a:[B

    invoke-static {v0, p1}, Lcom/hierynomus/asn1/utils/a;->a([B[B)Z

    move-result p1

    return p1
.end method

.method f()I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/hierynomus/asn1/g;->a:[B

    array-length v0, v0

    invoke-static {v0}, Lcom/hierynomus/asn1/w1;->a(I)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    iget-object v1, p0, Lcom/hierynomus/asn1/g;->a:[B

    array-length v1, v1

    add-int/2addr v0, v1

    return v0
.end method

.method g()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public getValue()Ljava/math/BigInteger;
    .locals 2

    .line 1
    new-instance v0, Ljava/math/BigInteger;

    iget-object v1, p0, Lcom/hierynomus/asn1/g;->a:[B

    invoke-direct {v0, v1}, Ljava/math/BigInteger;-><init>([B)V

    return-object v0
.end method

.method public hashCode()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/hierynomus/asn1/g;->a:[B

    invoke-static {v0}, Lcom/hierynomus/asn1/utils/a;->b([B)I

    move-result v0

    return v0
.end method
